home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
5
/
XCSHELL
/
READ_ME!.!!_
< prev
next >
Wrap
Text File
|
1991-08-31
|
5KB
|
128 lines
The enclosed source code is shareware, that is "user supported software". It is
provided for use by developers in the interest of generating Hypercard XCMDs and
XFCNs using Think C 5.0. If you find it usefull, please send me $20 to encourage
the publication of additional source code products distributed in the same way
accross the networks (I own a lot of stuff I could make available if sufficiently
motivated). I will answer any inquiries made and if necessary fix any bugs found
in the original sources in this package.
Mark M. Owen
AppleLink: D4900
GEnie: M.OPTIONS
Compuserve: 71530,2232
Voice: 206-868-5418
USPS: Box 95167 Seattle WA 98145-2167
=====================================================================================
Required Modifications:
=======================
XCMDconstants.h:
add your new verbs to the verbs enumeration;
add any new errors to the errors enumeration;
resource definitions:
GLOBALTYPE use a unique resource type;
GLOBALS use an unique name;
VERBS use an unique name;
NPARAMS use an unique name;
ERRORTAG use an unique name;
ERRORS use an unique name;
XCMD.rsrc resource file items ( name/type ):
VERBS/STR# change name and add new verb strings;
NPARAMS/vrpm change name and add param counts for new verbs (in order);
ERRORS/STR# change name and add any new error messages;
ERRORTAG/STR change name and error prefix (optional);
XCMDglobals.h:
add any globals data items to globals structure;
XCMDglobals.c:
SaveGlobals to save your global data between calls before XCMD exits;
RestoreGlobals to restore XCMD global values from previous call;
XCMDversion.c:
definition of VERSION for copyright, etc.
definition of _MC68881_ for suffix
The places where modifications are expected are clearly identified with a banner
similar to the following:
///////////////////////////////////////////////////////
/// make changes here because they are needed ///
///////////////////////////////////////////////////////
Project File Contents:
======================
╡soANSI-A4 or ╡soANSI881-A4
HyperXLib
MacTraps
main.c
SysEnvirons.╣
XCMDutils.c
XCMDglobals.c
XCMDversion.c
If you use the project file supplied as a template, your XCMD will be configured
to run on any Mac; with multiple segments if needed.
The sample stack and resource file are merely to illiustrate the XCMD shell's
functions: Version and Dispose.
After you have compiled your XCMD and merged it with the modified resources, you
should ResEdit or equivalent to copy the entire contents of the XCMD.rsrc file to
the destination stack. If the destination stack has another XCMD installed which
has the same number as your XCMD, you will need to change the resource id number in
the "Set Project Type╔" menu item of the Think C 5.0 "Project" menu and recompile.
==================================================================================
====== L E G A L S T U F F ======
==================================================================================
License:
========
This software was developed and is copyrighted by Mark M. Owen, DBA Micro System
Options, and is licensed to you on a non-exclusive basis. The software may not be
copied in whole or in part except as follows:
(1) You have the right to include the object code produced by the software in
programs that you develop and you also have the right to use, distribute and license
such programs to third parties without payment of any further license fees providing
that the copyright notice below is included in the "about box" of your software, in
the documentation for it, and on the labels affixed to the media on which your
software is distributed.
(2) You may distribute copies of the complete archive to others provided that
the archive file contains ALL of the original files including this document.
Copyright ⌐1991 Mark M. Owen. Portions of this product are copyrighted by Mark M. Owen.
Warranty:
=========
THERE ARE NO WARRANTIES TO YOU OR ANY OTHER PERSON OR ENTITY FOR THIS SOFTWARE
EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL SUCH WARRANTIES ARE
EXPRESSLY AND SPECIFICALLY DISCLAIMED.
Some states do not allow the exclusion of implied warranties or limitation on
how long they last, so the above limitation and exclusion may not apply to you.
This limited warranty gives you specific legal rights and you may also have
other rights which vary from state to state.
IN NO EVENT SHALL MICRO SYSTEM OPTIONS BE RESPONSIBLE FOR ANY DIRECT, SPECIAL,
INCIDENTAL, CONSEQUENTIAL, OR SIMILAR DAMAGES OR LOST DATA OR PROFITS TO YOU
OR ANY OTHER PERSON OR ENTITY REGARDLESS OF THE LEGAL THEORY, EVEN IF WE HAVE
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Some states do not allow the exclusion or limitation of incidental or
consequential damages, so the above limitation may not apply to you. The
warranty and remedies set forth are exclusive and in lieu of all others, oral
or written, express or implied.
=====================================================================================